<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
    <head>
        <title>Title</title>
    </head>
    <body>
        <form action="<%=request.getContextPath()%>/login" method="post">
            用户名：<input type="text" name="username"/><br/>
            密码：<input type="password" name="password"/><br/>
            <input type="checkbox" name="savepassword" value="true"/>记住密码<br/>
            <input type="submit" value="登录"/>
        </form>

        <%
            String message= (String) request.getAttribute("message");
            if(message!=null){
                out.print(message);
            }
        %>
    </body>
</html>
